package com.jianz.campus_markets.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.jianz.campus_markets.domain.ResponseResult;
import com.jianz.campus_markets.domain.delay.DelayedOrder;
import com.jianz.campus_markets.domain.entity.Order;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jianz
 * @since 2023-11-26
 */
public interface OrderService extends IService<Order> {

    DelayedOrder createOrder(Order order);

    boolean payOrder(String orderId);

    void autoCancelOrder(String orderId);

  List<Order> getOrderInfo(int userId);
}
